package main.java.design.builder;


/**
 * <p>
 *     建造者模式
 * </p>
 *
 * @author : wangdejian
 * @version 1.0
 * @date : 2020/6/11 22:21
 */
public class Client {
    public static void main(String[] args) {

        Builder concreteBuilder = new ConcreteBuilder("产品名字", "生产说明", "生产日期");
        Director director = new Director(concreteBuilder);
        Product product = director.buildProduct();

        System.out.println(product);
        System.out.println("******************************************************8");
        // Product{name='产品名字', explain='生产说明', phone='产品联系电话', address='产品生产地址', dateOfManufacture='生产日期'}

    }
}
